package com.study.composite.general.transparent;

public abstract class Component {
    protected String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract String operation();

    public boolean addChild(Component component){
        throw new UnsupportedOperationException("add child not supported");
    }

    public boolean removeChild(Component component){
        throw new UnsupportedOperationException("removeChild not supported");
    }

    public Component getChild(int index){
        throw new UnsupportedOperationException("getChild not supported");
    }
}
